home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 25
/
Cream of the Crop 25.iso
/
program
/
faq210s.zip
/
FAQ
/
IDXREF.SED
< prev
next >
Wrap
Text File
|
1995-10-16
|
527b
|
23 lines
s/comment --- transform a list of nodenames followed by chapter ---/&/
s/comment --- or section name, into a Sed script which changes ---/&/
s/comment --- node names into chapter numbers in nodenames. ---/&/
1i\
/^\\* Menu:$/,$ {
/^@node[ ]/ {
N
s/\n/!!=!!/
/^@node *Top/d
s/^@node *\([^,][^,]*\),.*!!=!!@\([a-z][a-z]*\)[ ][ ]*\([0-9]\(\.*[0-9]\)*\).*/s|: *\1\\.$|: \2 \3.|/
s/chapter \([0-9][0-9.]*\)/Chapter \1/
s/section \([0-9][0-9.]*\)/Section \1/
s/``/"/g
s/''/"/g
}
$a\
s/^\\* Menu:$//\
}